package com.kasax.httpclient.interceptors;

import com.kasax.httpclient.beans.Response;
import com.kasax.httpclient.core.inters.Interceptor;
import com.kasax.httpclient.utils.LogUtils;

import java.io.IOException;

public class HttpLoggingInterceptor implements Interceptor {
    @Override
    public Response intercpt(Chain chain) throws IOException {
        LogUtils.i(getClass(),"intercpt");
        return chain.procced();
    }

    public enum Level {
        NONE,
        BODY,
        BASIC
    }

    private Level level;

    public HttpLoggingInterceptor setLevel(Level level) {
        this.level = level;
        return this;
    }
}
